<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设备数据列表</title>
    <jsp:include page="css.jsp"/>
    <jsp:include page="js.jsp"/>
    <script src="static/wechat/project/js/devicePage.js"></script>
    <style>
        .table-container {
            height: calc(100vh - 5px);
        }
    </style>
</head>

<body>
<!-- 新增固定头部区域 -->
<div class="fixed-header">
    <section class="title-bar">
        <div class="title-content">
            <div class="title-text">环保在线预警查询系统</div>
        </div>
    </section>

    <!-- 修改后的下拉框 -->
    <div class="select-wrapper">
        <select class="custom-select" id="deviceList" onchange="changeDevice()"></select>
    </div>

    <div class="tabs">
        <div class="tab active" id="tab2011" data-type="realtime" onclick="changeDataType(2011)">实时数据</div>
        <div class="tab" id="tab2051" data-type="minute" onclick="changeDataType(2051)">分钟数据</div>
        <div class="tab" id="tab2061" data-type="hour" onclick="changeDataType(2061)">小时数据</div>
        <div class="tab" id="tab2031" data-type="day" onclick="changeDataType(2031)">日均数据</div>
    </div>
</div>

<!-- 滚动内容区域 -->
<div class="scrollable-content">
    <div class="table-container">
        <table class="fixed-table" id="detailTable"></table>
    </div>

    <!-- 修改后的表格标题 -->
    <div class="table-title" id="balanceTitle">
        <div class="table-title-text">设备排放量统计</div>
    </div>
    <div class="data-cards" id="balanceTable">
        <div class="chart-container" id="main">
            <div class="custom-legend" id="customLegend"></div>
        </div>
    </div>

    <!-- 修改后的表格标题 -->
    <div class="table-title" id="alarmReportDiv">
        <div class="table-title-text">预警情况统计分析</div>
    </div>
    <div class="data-cards">
        <!-- 在柱状图模块后添加 -->
        <div class="description-container">
            <!-- <div class="description-title">预警情况分析</div> -->
            <div class="description-content">
                <p id="reportTitle"></p>
                <p id="reportContent"></p>
            </div>
        </div>
    </div>
</div>

<a href="javascript:void(0)" onclick="goBack(2)" class="back-btn">↶</a>
</body>
</html>